<?php if(!defined("PATH_HD"))exit;C("SHOW_NOTICE",false);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	
	<script src="http://localhost/cms0121/tabui/js/jquery-1.8.3.js"></script>
	<script src="http://localhost/cms0121/tabui/js/jquery-ui-1.9.2.custom.js"></script>
    <script type="text/javascript" src="http://localhost/cms0121/admin/tpl/public/js/addshow.js"></script>
	<link rel="stylesheet" type="text/css" href="http://localhost/cms0121/admin/tpl/public/css/category.css" />
	<link href="http://localhost/cms0121/tabui/css/ui-lightness/jquery-ui-1.9.2.custom.css" rel="stylesheet">
    <script>
    $(function() {
		$( "#tabs" ).tabs();
		// Hover states on the static widgets
		$( "#dialog-link, #icons li" ).hover(
			function() {
				$( this ).addClass( "ui-state-hover" );
			},
			function() {
				$( this ).removeClass( "ui-state-hover" );
			}
		);
	});
    </script>
</head>
<body>
    <form action="http://localhost/cms0121/admin.php/catgory/runadd" method="post">
	<div id="tabs">
		<ul>
			<li id="tabs_top"><a href="#tabs-1">基本设置</a></li>
			<li id="tabs_top"><a href="#tabs-2">模板设置</a></li>
			<li id="tabs_top"><a href="#tabs-3">静态规则</a></li>
		</ul>
		<div id="tabs-1">
			<table class="table2">
                <tr>
                    <th>栏目名称</th>
                    <td>
                        <input type="text" class="w200" name="catname"/> <span class="desc1">栏目名称，必须使用中文</span>
                    </td>
                </tr>
                <tr>
                    <th>静态目录</th>
                    <td>
                        <input type="text"class="w200" name="catdir"/> <span class="desc2">栏目名称，必须使用中文</span>
                    </td>
                </tr>
                <tr>
                    <th>关键字</th>
                    <td>
                        <input type="text"class="w200" name="keywords"/> <span class="desc3">栏目名称，必须使用中文</span>
                    </td>
                </tr>
                <tr>
                    <th>栏目描述</th>
                    <td>
                        <textarea name="description" class="w300 h100"></textarea>
                    </td>
                </tr>
            </table>
            <div>
                <input type="submit" class="bt1" value="添加栏目"/>
            </div>
		</div>
		<div id="tabs-2">
			<table class="table2">
                <tr>
                    <th>栏目模板</th>
                    <td>
                        <input type="text" name="cattpl" class="w200" value="list.html"/><button class="bt2">选择模板</button><span class="desc"></span>
                    </td>
                </tr>
                <tr>
                    <th>内容页模板</th>
                    <td>
                        <input type="text" name="arctpl" class="w200" value="arc.html"/><button class="bt2">选择模板</button><span class="desc"></span>
                    </td>
                </tr>
            </table>
            <div>
                <input type="submit" class="bt1" value="添加栏目"/>
            </div>
		</div>
		<div id="tabs-3">
			<table class="table2">
                <tr>
                    <th>栏目静态</th>
                    <td>
                        <input type="text" name="cathtml" class="w200" value="{htmlpath}/{catdir}/{cid}.html"/><span class="desc">{htmlpath}静态根目录 {catdir}列表目录 {cid}栏目ID</span>
                    </td>
                </tr>
                <tr>
                    <th>内容页静态</th>
                    <td>
                        <input type="text" name="archtml" class="w200" value="{htmlpath}/{catdir}/{y}{m}/{aid}.html"/><span class="desc">{htmlpath}根目录 {catdir}列表目录  {y}年 {m}月 {d}日 {aid}文章ID</span>
                    </td>
                </tr>
            </table>
            <div>
                <input type="submit" class="bt1" value="添加栏目"/>
            </div>
		</div>
	</div>
    </form>
</body>
</html>